function logout(){
    $.ajax({
        url: "/logout",
        dataType: "json",
        method: "get",
        success: function (rs) {
            window.location = rs.message;
        }
    })
}